package com.pipi.sso.dao.manager;

import com.pipi.sso.dao.model.RepairDO;
import com.pipi.sso.dao.query.RepairQuery;
import com.pipi.sso.dao.support.PageResult;

import java.util.List;


/**
 * Manager for Repair.
 */
public interface RepairManager {
    /**
     * query count by query condition.
     */
    int countByQuery(RepairQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(RepairQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(RepairDO record);

    /**
     * insert selective.
     */
    long insertSelective(RepairDO record);

    /**
     * select by query condition.
     */
    List<RepairDO> selectByQuery(RepairQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<RepairDO> selectByQueryWithPage(RepairQuery query);

    /**
     * select by primary key.
     */
    RepairDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( RepairDO record,  RepairQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(RepairDO record, RepairQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(RepairDO record);
}